package com.hf.lianxi;

public class Person {
    /**
     * 属性
     */
    String preName = "Perason";

    /**
     * 构造方法
     */
    public Person() {
        System.out.println("person的无参构造");
    }

    public Person(String preName) {
        this.preName = preName;
    }

    public String getPreName() {
        return preName;
    }

    public void setPreName(String preName) {
        this.preName = preName;
    }
    /**
     * 静态语句块
     */
    static {
        System.out.println("person静态语句块");
    }

    /**
     * 非静态语句块
     */
    {
        System.out.println("person非静态语句块");
    }

}
